﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace TiendaMusicaWebV2.Models
{
    [Table("album")]
    public class Album
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Column("id")]
        public int AlbumId { get; set; }

      
        [Column("genero_id")]
        public int GenreId { get; set; }

        [Column("artista_id")]
        public int ArtistId { get; set; }

        [Column("titulo")]
        public string Title { get; set; }

        [Column("precio")]
        public decimal Price { get; set; }

        [Column("albumArt")]
        public string AlbumArtUrl { get; set; }

        public virtual Genre Genre { get; set; }
        public virtual Artist Artist { get; set; }
        public virtual List<OrderDetail> OrderDetails { get; set; }
    }
}